package principle.singleResponsibilityPrinciple.perfection;

import principle.singleResponsibilityPrinciple.perfection.Impl.CommonVideoUserService;
import principle.singleResponsibilityPrinciple.perfection.Impl.GuestVideoUserService;
import principle.singleResponsibilityPrinciple.perfection.Impl.VipVideoUserService;

/**
 * @author： pang-yun
 * @date： 2021-08-21 17:17
 * 功能目的 ：用于   测试
 */

public class ServiceTest {
    public static void main(String[] args) {

        //guest
        IVideoUserService guest =new GuestVideoUserService();
        guest.definition();
        guest.advertisement();

        // common
        IVideoUserService common = new CommonVideoUserService();
        common.advertisement();
        common.definition();

        // vip
        IVideoUserService vip =new VipVideoUserService();
        vip.definition();
        vip.advertisement();
    }
}
